package com.workspace.chb_website.bean;

import com.fasterxml.jackson.annotation.JsonIgnore;
import org.springframework.security.core.GrantedAuthority;

public class Role implements GrantedAuthority {

    private String roleName;

    public String getName() {
        return roleName;
    }

    public void setName(String name) {
        this.roleName = name;
    }

    @JsonIgnore
    @Override
    public String getAuthority() {
        return roleName;
    }
}
